package com.chen.service;

import com.chen.pojo.Type;

import java.util.List;

public interface TypeService {

    int saveType(Type type);

    Type getTypeByName(String name);

    Type getType(Long id);

    List<Type> listType();

    // Type updateType(Long id, Type type);
    int updateType(Long id, String name);

    void deleteType(Long id);

}
